﻿using System;
using ProjScan.RecordManager;
using ProjScan.RecordManager.AssetData;
using ProjScan.ScanRule.Attr;

namespace ProjScan.ScanRule.ProjectAssets.VideoClip
{
	// Token: 0x020001B9 RID: 441
	[VideoRuleAttr]
	internal class Video_SizeLimit : RecordRuleImp<VideoClipAssetData, VideoClipRecordManager>
	{
		// Token: 0x06000E7B RID: 3707 RVA: 0x00041EFC File Offset: 0x000400FC
		protected override bool IsOK(VideoClipAssetData assetData)
		{
			float thresholds = this.GetThresholds(512f);
			return assetData.width <= thresholds || assetData.height <= thresholds;
		}
	}
}
